/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.Text;
using System.CodeDom.Compiler;

namespace SWF
{
	public class JPEGTables : ISwfTag
	{
		public const TagType tagType = TagType.JPEGTables;
		public TagType TagType { get { return tagType; } }

        public byte[] JpegTable;

		public JPEGTables(SwfReader r, uint curTagLen)
		{
			if(curTagLen > 8)
			{
				r.GetBytes(2); //jpg SOI Marker
				JpegTable = r.GetBytes(curTagLen - 4);
				r.GetBytes(2); //jpg EOI Marker
			}
            else
            {
                JpegTable = new byte[0];
            }
		}
	}
}
